﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace JX.Core.Entity
{
	/// <summary>
	/// 节点IP锁定信息
	/// </summary>
	[XmlRoot("NodeIPLockInfo", Namespace = "http://www.jiexiang.net", IsNullable = false)]
	public class NodeIPLockInfo
	{
		private bool m_IsNull;
		private bool m_IsOpeningLockIP;
		private string m_LockIPWhite;
		/// <summary>
		/// 构造
		/// </summary>
		public NodeIPLockInfo()
		{
		}
		/// <summary>
		/// 可空构造:是否生成一个空对象
		/// </summary>
		/// <param name="value"></param>
		public NodeIPLockInfo(bool value)
		{
			this.m_IsNull = value;
		}
		/// <summary>
		/// 是否为空对象
		/// </summary>
		public bool IsNull
		{
			get
			{
				return this.m_IsNull;
			}
		}
		/// <summary>
		/// 是否启用IP锁定
		/// </summary>
		public bool IsOpeningLockIP
		{
			get
			{
				return this.m_IsOpeningLockIP;
			}
			set
			{
				this.m_IsOpeningLockIP = value;
			}
		}
		/// <summary>
		/// 锁定白名单
		/// </summary>
		public string LockIPWhite
		{
			get
			{
				return this.m_LockIPWhite;
			}
			set
			{
				this.m_LockIPWhite = value;
			}
		}
	}
}
